package cn.pegasus.teamwork.pegasus.service;

import java.util.List;
import java.util.Map;

import cn.pegasus.teamwork.pegasus.entity.BussUcenterArea;
import cn.pegasus.teamwork.pegasus.mapper.BussUcenterAreaMapper;
import cn.iyizhan.teamwork.base.service.BaseService;
import cn.iyizhan.teamwork.base.util.PageObject;

/**
 * @author ryan.bian
 * @version 
 */
public interface BussUcenterAreaService extends BaseService<BussUcenterArea,BussUcenterAreaMapper>  {

	//根据父级查询信息
	public List<BussUcenterArea> findList(String fid,Integer areaLevel) throws Exception;
	//分页查询
	public PageObject<BussUcenterArea> PageList(Map<String, Object> map);
	//新增
	public void addArea(Long id,Map<String,Object> map);
	
	//修改
	public void update(Long id,Map<String,Object> map);
	//查询详情
	public BussUcenterArea findAreaInfo(Long id);
	
	public int delete(Long id);
	
	/**
	 * 根据经纬度查询周边的小区信息
	 * @param map
	 * @return
	 * @throws Exception
	 */
	public List<BussUcenterArea> findListByLatLng(Map<String, Object> map) throws Exception;
	//查询区域名称
	public String getAreaName(Integer id);
}
